<html>
<head>
<script type="text/javascript">

function AT_ik(a){
function s(p,s,k,n){a.ik={s:s,p:p,k:k,w:n};}
function g(){
odl=100;
t=-odl*((100-a.ik.k*(odl/90))/100);
l=odl*((a.ik.k*(odl/90))/100);
with(a){vkf({left:ik.p[0],top:ik.p[1]},1);
vkf({left:ik.p[0]+l,top:ik.p[1]+t},100);
van.go=true
}
STPE.go('',10);
}
return {set:s,go:g}
}

function ble(){
art={w:10,s:100};
Alladyn(['AT_ik']);
STPE.N('pudelko',200);
STPE.N('kulka',20);
with(vlay.pudelko){vpos(100,100);with(style){width=200;height=200;background='gray';}}
with(vlay.kulka){vHTML("<img src='or.gif'>");}
vlay.kulka.vGIN.AT_ik.set([200,200],10,45,[100,100,300,300]);
vlay.kulka.vGIN.AT_ik.go();
}

</script>
<script type="text/javascript" src="Alladyn.js"></script>
</head>
<body onload="ble()">
</body>
</html>